package com.ferry.protocol;

/**
 * Created by daiyong
 */
public enum MessageType {
	REQUEST((byte)0x01, "request"),
	RESPONSE((byte)0x02, "response"),
	HEARTBEAT((byte)0x03, "heartbeat");

	private byte code;
	private String desc;

	MessageType(byte code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public byte getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
}
